package com.xl98.mapper;

import com.xl98.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ls
 * @since 2020-05-15
 */
@Repository
public interface UserMapper extends BaseMapper<User> {
   //根据ID或username或email查询用户
   User findByString(Map<String,String> map);
   //查询所有用户
   List<User> findAllUser();

   //更新用户状态
   int updateUserState(Map<String,String> map);
}
